package com.beta.cust.bind.datasync.aop;

import com.beta.cat.aop.ApiBaseAspect;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: liujin
 * @createDate: 2021/4/29
 * @version: 1.0
 */
@Aspect
@Order(0)
@Component
public class ApiLogAopAspect extends ApiBaseAspect {

    @Pointcut("execution(* com.beta.cust.bind.datasync.provider..*.*(..))")
    public void pointCut() {
    }

    @Around("pointCut()")
    public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
        return aroundRpc(joinPoint, false);
    }
}
